﻿using System;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.UI;

namespace SizeboxUI
{
	// Token: 0x020003B2 RID: 946
	public class RaygunSettingsView : SettingsView
	{
		// Token: 0x170003B6 RID: 950
		// (set) Token: 0x0600195B RID: 6491 RVA: 0x0009F0A9 File Offset: 0x0009D2A9
		public GameObject _gameSettings
		{
			set
			{
				this.gameSettings = value;
			}
		}

		// Token: 0x0600195C RID: 6492 RVA: 0x0009F0B4 File Offset: 0x0009D2B4
		private void Start()
		{
			Button componentInChildren = base.GetComponentInChildren<Button>();
			componentInChildren.onClick.RemoveAllListeners();
			componentInChildren.onClick.AddListener(delegate()
			{
				this.ClosePanel();
			});
			this.panelTransform = base.transform.Find("Decoration/Panel");
			this.settingsTab = UnityEngine.Object.Instantiate<GameObject>(Resources.Load<GameObject>("UI/Pause/RaygunSettingsTabs"));
			this.settingsTab.transform.SetParent(this.gridGroup.transform, false);
			this.generalTabButton = this.settingsTab.transform.Find("GeneralButton").gameObject.GetComponent<Button>();
			this.generalTabButton.interactable = false;
			this.projectileTabButton = this.settingsTab.transform.Find("ProjectileButton").gameObject.GetComponent<Button>();
			this.laserTabButton = this.settingsTab.transform.Find("LaserButton").gameObject.GetComponent<Button>();
			this.sonicTabButton = this.settingsTab.transform.Find("SonicButton").gameObject.GetComponent<Button>();
			this.generalTabButton.onClick.AddListener(delegate()
			{
				this.OnGeneralTabPressed();
			});
			this.projectileTabButton.onClick.AddListener(delegate()
			{
				this.OnProjectileTabPressed();
			});
			this.laserTabButton.onClick.AddListener(delegate()
			{
				this.OnLaserTabPressed();
			});
			this.sonicTabButton.onClick.AddListener(delegate()
			{
				this.OnSonicTabPressed();
			});
			this.OnGeneralTabPressed();
			this.initialized = true;
		}

		// Token: 0x0600195D RID: 6493 RVA: 0x0009F250 File Offset: 0x0009D450
		protected override void UpdateValues()
		{
			if (!this.projectileTabButton.interactable)
			{
				this.projectileSpeedMult.value = GlobalPreferences.PlayerProjectileSpeed.value * 4f;
			}
			if (!this.laserTabButton.interactable)
			{
				this.laserWidthMult.value = GlobalPreferences.LaserWidth.value * 2f;
			}
			if (!this.sonicTabButton.interactable)
			{
				this.sonicWidthMult.value = GlobalPreferences.SonicWidth.value * 2f;
			}
		}

		// Token: 0x0600195E RID: 6494 RVA: 0x0009F2DE File Offset: 0x0009D4DE
		private void OnGeneralTabPressed()
		{
			this.generalTabButton.interactable = false;
			this.projectileTabButton.interactable = true;
			this.laserTabButton.interactable = true;
			this.sonicTabButton.interactable = true;
			this.ClearSettingsPanel();
			this.SetupGeneralTab();
		}

		// Token: 0x0600195F RID: 6495 RVA: 0x0009F31C File Offset: 0x0009D51C
		private void OnProjectileTabPressed()
		{
			this.generalTabButton.interactable = true;
			this.projectileTabButton.interactable = false;
			this.laserTabButton.interactable = true;
			this.sonicTabButton.interactable = true;
			this.ClearSettingsPanel();
			this.SetupProjectileTab();
		}

		// Token: 0x06001960 RID: 6496 RVA: 0x0009F35A File Offset: 0x0009D55A
		private void OnLaserTabPressed()
		{
			this.generalTabButton.interactable = true;
			this.projectileTabButton.interactable = true;
			this.laserTabButton.interactable = false;
			this.sonicTabButton.interactable = true;
			this.ClearSettingsPanel();
			this.SetupLaserTab();
		}

		// Token: 0x06001961 RID: 6497 RVA: 0x0009F398 File Offset: 0x0009D598
		private void OnSonicTabPressed()
		{
			this.generalTabButton.interactable = true;
			this.projectileTabButton.interactable = true;
			this.laserTabButton.interactable = true;
			this.sonicTabButton.interactable = false;
			this.ClearSettingsPanel();
			this.SetupSonicTab();
		}

		// Token: 0x06001962 RID: 6498 RVA: 0x0009F3D8 File Offset: 0x0009D5D8
		private void SetupGeneralTab()
		{
			base.AddHeader(string.Empty);
			this.scriptMode = base.AddToggle("Script Mode");
			this.scriptMode.isOn = GlobalPreferences.RaygunScriptMode.value;
			this.scriptMode.onValueChanged.AddListener(delegate(bool v)
			{
				GlobalPreferences.RaygunScriptMode.value = v;
			});
			this.aimTargetDist = base.AddSlider("Player Position", -2f, 2f);
			this.aimTargetDist.value = GlobalPreferences.AimTargetDist.value;
			this.aimTargetDist.onValueChanged.AddListener(delegate(float v)
			{
				this.SetAimTargetDist(v);
			});
			base.AddHeader("Growing Energy Color");
			this.growColorR = base.AddSlider("R", 0f, 1f);
			this.growColorR.value = GlobalPreferences.GrowColorR.value;
			this.growColorR.onValueChanged.AddListener(delegate(float v)
			{
				this.OnGrowColorChanged();
			});
			this.growColorG = base.AddSlider("G", 0f, 1f);
			this.growColorG.value = GlobalPreferences.GrowColorG.value;
			this.growColorG.onValueChanged.AddListener(delegate(float v)
			{
				this.OnGrowColorChanged();
			});
			this.growColorB = base.AddSlider("B", 0f, 1f);
			this.growColorB.value = GlobalPreferences.GrowColorB.value;
			this.growColorB.onValueChanged.AddListener(delegate(float v)
			{
				this.OnGrowColorChanged();
			});
			base.AddHeader("Shrinking Energy Color");
			this.shrinkColorR = base.AddSlider("R", 0f, 1f);
			this.shrinkColorR.value = GlobalPreferences.ShrinkColorR.value;
			this.shrinkColorR.onValueChanged.AddListener(delegate(float v)
			{
				this.OnShrinkColorChanged();
			});
			this.shrinkColorG = base.AddSlider("G", 0f, 1f);
			this.shrinkColorG.value = GlobalPreferences.ShrinkColorG.value;
			this.shrinkColorG.onValueChanged.AddListener(delegate(float v)
			{
				this.OnShrinkColorChanged();
			});
			this.shrinkColorB = base.AddSlider("B", 0f, 1f);
			this.shrinkColorB.value = GlobalPreferences.ShrinkColorB.value;
			this.shrinkColorB.onValueChanged.AddListener(delegate(float v)
			{
				this.OnShrinkColorChanged();
			});
			base.AddHeader("Crosshair Settings");
			this.crosshairColorR = base.AddSlider("R", 0f, 1f);
			this.crosshairColorR.value = GlobalPreferences.CrosshairColorR.value;
			this.crosshairColorR.onValueChanged.AddListener(delegate(float v)
			{
				this.OnCrosshairColorChanged();
			});
			this.crosshairColorG = base.AddSlider("G", 0f, 1f);
			this.crosshairColorG.value = GlobalPreferences.CrosshairColorG.value;
			this.crosshairColorG.onValueChanged.AddListener(delegate(float v)
			{
				this.OnCrosshairColorChanged();
			});
			this.crosshairColorB = base.AddSlider("B", 0f, 1f);
			this.crosshairColorB.value = GlobalPreferences.CrosshairColorB.value;
			this.crosshairColorB.onValueChanged.AddListener(delegate(float v)
			{
				this.OnCrosshairColorChanged();
			});
			this.crosshairImage = base.AddDropdown("Crosshair Image", base.CreateTextOptions(this.crosshairs, false));
			this.crosshairImage.value = GlobalPreferences.CrosshairImage.value;
			this.crosshairImage.onValueChanged.AddListener(new UnityAction<int>(this.SetCrosshairImage));
			this.crosshairOutline = base.AddDropdown("Crosshair Outline", base.CreateTextOptions(this.crosshairOutlines, false));
			this.crosshairOutline.value = GlobalPreferences.CrosshairOutline.value;
			this.crosshairOutline.onValueChanged.AddListener(new UnityAction<int>(this.SetCrosshairOutline));
			this.crosshairScale = base.AddSlider("Crosshair Scale", 0.1f, 1.5f);
			this.crosshairScale.value = GlobalPreferences.UICrosshairScale.value;
			this.crosshairScale.onValueChanged.AddListener(new UnityAction<float>(this.OnCrosshairScaleChanged));
			base.AddHeader("Auxiliary UI Settings");
			this.auxiliaryColorR = base.AddSlider("R", 0f, 1f);
			this.auxiliaryColorR.value = GlobalPreferences.AuxiliaryUIColorR.value;
			this.auxiliaryColorR.onValueChanged.AddListener(delegate(float v)
			{
				this.OnAuxiliaryColorChanged();
			});
			this.auxiliaryColorG = base.AddSlider("G", 0f, 1f);
			this.auxiliaryColorG.value = GlobalPreferences.AuxiliaryUIColorG.value;
			this.auxiliaryColorG.onValueChanged.AddListener(delegate(float v)
			{
				this.OnAuxiliaryColorChanged();
			});
			this.auxiliaryColorB = base.AddSlider("B", 0f, 1f);
			this.auxiliaryColorB.value = GlobalPreferences.AuxiliaryUIColorB.value;
			this.auxiliaryColorB.onValueChanged.AddListener(delegate(float v)
			{
				this.OnAuxiliaryColorChanged();
			});
			this.auxiliaryFade = base.AddToggleSlider("Auxiliary Fade", 0.5f, 4f);
			this.auxiliaryFade.toggle.isOn = GlobalPreferences.AuxiliaryFade.value;
			this.auxiliaryFade.toggle.onValueChanged.AddListener(delegate(bool v)
			{
				this.OnToggleFade(v);
			});
			this.auxiliaryFade.slider.value = GlobalPreferences.AuxiliaryFadeDelay.value;
			this.auxiliaryFade.slider.onValueChanged.AddListener(delegate(float v)
			{
				GlobalPreferences.AuxiliaryFadeDelay.value = v;
			});
			this.polarityBarLocation = base.AddDropdown("Polarity Bar Location", base.CreateTextOptions(this.polarityBarLocations, false));
			this.polarityBarLocation.value = GlobalPreferences.PolarityBarLocation.value;
			this.polarityBarLocation.onValueChanged.AddListener(new UnityAction<int>(this.SetPolarityBarLocation));
			this.firingModeBarLocation = base.AddDropdown("Firing Mode Bar Location", base.CreateTextOptions(this.firingModeBarLocations, false));
			this.firingModeBarLocation.value = GlobalPreferences.FiringModeBarLocation.value;
			this.firingModeBarLocation.onValueChanged.AddListener(new UnityAction<int>(this.SetFiringModeBarLocation));
			this.auxiliaryScale = base.AddSlider("Auxiliary UI Scale", 0.1f, 1.5f);
			this.auxiliaryScale.value = GlobalPreferences.UIAuxiliaryScale.value;
			this.auxiliaryScale.onValueChanged.AddListener(new UnityAction<float>(this.OnAuxiliaryScaleChanged));
		}

		// Token: 0x06001963 RID: 6499 RVA: 0x0009FAC8 File Offset: 0x0009DCC8
		private void SetupProjectileTab()
		{
			base.AddHeader(string.Empty);
			this.projectileEffectMult = base.AddSlider("Effect Multiplier", 1f, 16f);
			this.projectileEffectMult.value = GlobalPreferences.ProjectileEffectMultiplier.value * 4f;
			this.projectileEffectMult.wholeNumbers = true;
			this.projectileEffectMult.onValueChanged.AddListener(delegate(float v)
			{
				GlobalPreferences.ProjectileEffectMultiplier.value = v / 4f;
			});
			this.projectileEffectMode = base.AddDropdown("Growth Mode", base.CreateTextOptions(this.projectileEffectModes, false));
			this.projectileEffectMode.value = GlobalPreferences.ProjectileEffectMode.value;
			this.projectileEffectMode.onValueChanged.AddListener(delegate(int v)
			{
				GlobalPreferences.ProjectileEffectMode.value = v;
			});
			this.projectileSpeedMult = base.AddSlider("Projectile Speed", 1f, 12f);
			this.projectileSpeedMult.wholeNumbers = true;
			this.projectileSpeedMult.value = GlobalPreferences.PlayerProjectileSpeed.value * 4f;
			this.projectileSpeedMult.onValueChanged.AddListener(delegate(float v)
			{
				GlobalPreferences.PlayerProjectileSpeed.value = v / 4f;
			});
			this.projectileChargeRate = base.AddSlider("Charge Rate", 1f, 8f);
			this.projectileChargeRate.wholeNumbers = true;
			this.projectileChargeRate.value = GlobalPreferences.ProjectileChargeRate.value * 2f;
			this.projectileChargeRate.onValueChanged.AddListener(delegate(float v)
			{
				GlobalPreferences.ProjectileChargeRate.value = v / 2f;
			});
			this.projectileLifetime = base.AddSlider("Projectile Lifetime", 3f, 10f);
			this.projectileLifetime.value = (float)GlobalPreferences.PlayerProjectileLifetime.value;
			this.projectileLifetime.wholeNumbers = true;
			this.projectileLifetime.onValueChanged.AddListener(delegate(float v)
			{
				GlobalPreferences.PlayerProjectileLifetime.value = (int)v;
			});
			this.projectileImpactParticles = base.AddToggle("Display Impact VFX");
			this.projectileImpactParticles.isOn = GlobalPreferences.PlayerProjectileImpactParticles.value;
			this.projectileImpactParticles.onValueChanged.AddListener(delegate(bool v)
			{
				GlobalPreferences.PlayerProjectileImpactParticles.value = v;
			});
			this.projectileImpactParticlesSizeMult = base.AddSlider("Impact VFX Size", 0.1f, 2f);
			this.projectileImpactParticlesSizeMult.value = GlobalPreferences.PlayerProjectileImpactParticlesSizeMult.value;
			this.projectileImpactParticlesSizeMult.onValueChanged.AddListener(delegate(float v)
			{
				GlobalPreferences.PlayerProjectileImpactParticlesSizeMult.value = v;
			});
			this.projectileGtsMask = base.AddToggle("Affect GTS");
			this.projectileGtsMask.isOn = GlobalPreferences.PlayerProjectileGtsMask.value;
			this.projectileGtsMask.onValueChanged.AddListener(delegate(bool v)
			{
				this.OnProjectileMaskChanged();
			});
			this.projectileMicroMask = base.AddToggle("Affect Micros");
			this.projectileMicroMask.isOn = GlobalPreferences.PlayerProjectileMicroMask.value;
			this.projectileMicroMask.onValueChanged.AddListener(delegate(bool v)
			{
				this.OnProjectileMaskChanged();
			});
			this.projectileObjectMask = base.AddToggle("Affect Objects");
			this.projectileObjectMask.isOn = GlobalPreferences.PlayerProjectileObjectMask.value;
			this.projectileObjectMask.onValueChanged.AddListener(delegate(bool v)
			{
				this.OnProjectileMaskChanged();
			});
		}

		// Token: 0x06001964 RID: 6500 RVA: 0x0009FE70 File Offset: 0x0009E070
		private void SetupLaserTab()
		{
			base.AddHeader(string.Empty);
			this.laserEffectMult = base.AddSlider("Effect Multiplier", 1f, 16f);
			this.laserEffectMult.value = GlobalPreferences.LaserEffectMultiplier.value * 4f;
			this.laserEffectMult.wholeNumbers = true;
			this.laserEffectMult.onValueChanged.AddListener(delegate(float v)
			{
				GlobalPreferences.LaserEffectMultiplier.value = v / 4f;
			});
			this.laserWidthMult = base.AddSlider("Laser Width", 1f, 30f);
			this.laserWidthMult.wholeNumbers = true;
			this.laserWidthMult.value = GlobalPreferences.LaserWidth.value * 2f;
			this.laserWidthMult.onValueChanged.AddListener(delegate(float v)
			{
				GlobalPreferences.LaserWidth.value = v / 2f;
			});
			this.laserImpactParticles = base.AddToggle("Display Impact VFX");
			this.laserImpactParticles.isOn = GlobalPreferences.LaserImpactParticles.value;
			this.laserImpactParticles.onValueChanged.AddListener(delegate(bool v)
			{
				GlobalPreferences.LaserImpactParticles.value = v;
			});
			this.laserImpactParticlesSizeMult = base.AddSlider("Impact VFX Size", 0.1f, 2f);
			this.laserImpactParticlesSizeMult.value = GlobalPreferences.LaserImpactParticlesSizeMult.value;
			this.laserImpactParticlesSizeMult.onValueChanged.AddListener(delegate(float v)
			{
				GlobalPreferences.LaserImpactParticlesSizeMult.value = v;
			});
			this.laserGtsMask = base.AddToggle("Affect GTS");
			this.laserGtsMask.isOn = GlobalPreferences.LaserGtsMask.value;
			this.laserGtsMask.onValueChanged.AddListener(delegate(bool v)
			{
				this.OnLaserMaskChanged();
			});
			this.laserMicroMask = base.AddToggle("Affect Micros");
			this.laserMicroMask.isOn = GlobalPreferences.LaserMicroMask.value;
			this.laserMicroMask.onValueChanged.AddListener(delegate(bool v)
			{
				this.OnLaserMaskChanged();
			});
			this.laserObjectMask = base.AddToggle("Affect Objects");
			this.laserObjectMask.isOn = GlobalPreferences.LaserObjectMask.value;
			this.laserObjectMask.onValueChanged.AddListener(delegate(bool v)
			{
				this.OnLaserMaskChanged();
			});
		}

		// Token: 0x06001965 RID: 6501 RVA: 0x000A00E0 File Offset: 0x0009E2E0
		private void SetupSonicTab()
		{
			base.AddHeader(string.Empty);
			this.sonicEffectMult = base.AddSlider("Effect Multiplier", 1f, 16f);
			this.sonicEffectMult.value = GlobalPreferences.SonicEffectMultiplier.value * 4f;
			this.sonicEffectMult.wholeNumbers = true;
			this.sonicEffectMult.onValueChanged.AddListener(delegate(float v)
			{
				GlobalPreferences.SonicEffectMultiplier.value = v / 4f;
			});
			this.sonicWidthMult = base.AddSlider("Sonic Width", 1f, 6f);
			this.sonicWidthMult.wholeNumbers = true;
			this.sonicWidthMult.value = GlobalPreferences.SonicWidth.value * 2f;
			this.sonicWidthMult.onValueChanged.AddListener(delegate(float v)
			{
				GlobalPreferences.SonicWidth.value = v / 2f;
			});
			this.sonicTagging = base.AddToggle("Continous Tagging");
			this.sonicTagging.isOn = GlobalPreferences.SonicTagging.value;
			this.sonicTagging.onValueChanged.AddListener(delegate(bool v)
			{
				GlobalPreferences.SonicTagging.value = v;
			});
			this.sonicGtsMask = base.AddToggle("Affect GTS");
			this.sonicGtsMask.isOn = GlobalPreferences.SonicGtsMask.value;
			this.sonicGtsMask.onValueChanged.AddListener(delegate(bool v)
			{
				this.OnSonicMaskChanged();
			});
			this.sonicMicroMask = base.AddToggle("Affect Micros");
			this.sonicMicroMask.isOn = GlobalPreferences.SonicMicroMask.value;
			this.sonicMicroMask.onValueChanged.AddListener(delegate(bool v)
			{
				this.OnSonicMaskChanged();
			});
			this.sonicObjectMask = base.AddToggle("Affect Objects");
			this.sonicObjectMask.isOn = GlobalPreferences.SonicObjectMask.value;
			this.sonicObjectMask.onValueChanged.AddListener(delegate(bool v)
			{
				this.OnSonicMaskChanged();
			});
		}

		// Token: 0x06001966 RID: 6502 RVA: 0x000A02F0 File Offset: 0x0009E4F0
		private void ClearSettingsPanel()
		{
			for (int i = 1; i < this.panelTransform.childCount; i++)
			{
				UnityEngine.Object.Destroy(this.panelTransform.GetChild(i).gameObject);
			}
		}

		// Token: 0x06001967 RID: 6503 RVA: 0x000A032F File Offset: 0x0009E52F
		private new void ClosePanel()
		{
			this.gameSettings.SetActive(true);
			base.gameObject.SetActive(false);
		}

		// Token: 0x06001968 RID: 6504 RVA: 0x000A0349 File Offset: 0x0009E549
		private void SetAimTargetDist(float v)
		{
			GlobalPreferences.AimTargetDist.value = v;
			if (GameController.playerInstance != null)
			{
				GameController.playerInstance.UpdateShooterTargetPosition();
			}
		}

		// Token: 0x06001969 RID: 6505 RVA: 0x000A0370 File Offset: 0x0009E570
		private void OnGrowColorChanged()
		{
			GlobalPreferences.GrowColorR.value = this.growColorR.value;
			GlobalPreferences.GrowColorG.value = this.growColorG.value;
			GlobalPreferences.GrowColorB.value = this.growColorB.value;
			if (PlayerRaygun.instance != null)
			{
				PlayerRaygun.instance.RefreshColors();
			}
		}

		// Token: 0x0600196A RID: 6506 RVA: 0x000A03D8 File Offset: 0x0009E5D8
		private void OnShrinkColorChanged()
		{
			GlobalPreferences.ShrinkColorR.value = this.shrinkColorR.value;
			GlobalPreferences.ShrinkColorG.value = this.shrinkColorG.value;
			GlobalPreferences.ShrinkColorB.value = this.shrinkColorB.value;
			if (PlayerRaygun.instance != null)
			{
				PlayerRaygun.instance.RefreshColors();
			}
		}

		// Token: 0x0600196B RID: 6507 RVA: 0x000A0440 File Offset: 0x0009E640
		private void OnCrosshairColorChanged()
		{
			GlobalPreferences.CrosshairColorR.value = this.crosshairColorR.value;
			GlobalPreferences.CrosshairColorG.value = this.crosshairColorG.value;
			GlobalPreferences.CrosshairColorB.value = this.crosshairColorB.value;
			if (PlayerRaygun.instance != null)
			{
				PlayerRaygun.instance.RefreshUI();
			}
		}

		// Token: 0x0600196C RID: 6508 RVA: 0x000A04A6 File Offset: 0x0009E6A6
		private void SetCrosshairImage(int v)
		{
			GlobalPreferences.CrosshairImage.value = v;
			if (PlayerRaygun.instance != null)
			{
				PlayerRaygun.instance.RefreshUI();
			}
		}

		// Token: 0x0600196D RID: 6509 RVA: 0x000A04CD File Offset: 0x0009E6CD
		private void SetCrosshairOutline(int v)
		{
			GlobalPreferences.CrosshairOutline.value = v;
			if (PlayerRaygun.instance != null)
			{
				PlayerRaygun.instance.RefreshUI();
			}
		}

		// Token: 0x0600196E RID: 6510 RVA: 0x000A04F4 File Offset: 0x0009E6F4
		private void OnCrosshairScaleChanged(float v)
		{
			GlobalPreferences.UICrosshairScale.value = v;
			if (PlayerRaygun.instance != null)
			{
				PlayerRaygun.instance.RefreshUI();
			}
		}

		// Token: 0x0600196F RID: 6511 RVA: 0x000A051C File Offset: 0x0009E71C
		private void OnAuxiliaryColorChanged()
		{
			GlobalPreferences.AuxiliaryUIColorR.value = this.auxiliaryColorR.value;
			GlobalPreferences.AuxiliaryUIColorG.value = this.auxiliaryColorG.value;
			GlobalPreferences.AuxiliaryUIColorB.value = this.auxiliaryColorB.value;
			if (PlayerRaygun.instance != null)
			{
				PlayerRaygun.instance.ChangeAuxiliaryUIColor(new Color(this.auxiliaryColorR.value, this.auxiliaryColorG.value, this.auxiliaryColorB.value));
			}
		}

		// Token: 0x06001970 RID: 6512 RVA: 0x000A05A8 File Offset: 0x0009E7A8
		private void OnToggleFade(bool v)
		{
			GlobalPreferences.AuxiliaryFade.value = v;
			if (PlayerRaygun.instance != null)
			{
				PlayerRaygun.instance.ResetUIFade();
			}
		}

		// Token: 0x06001971 RID: 6513 RVA: 0x000A05CF File Offset: 0x0009E7CF
		private void SetPolarityBarLocation(int v)
		{
			GlobalPreferences.PolarityBarLocation.value = v;
			if (PlayerRaygun.instance != null)
			{
				PlayerRaygun.instance.RefreshUI();
			}
		}

		// Token: 0x06001972 RID: 6514 RVA: 0x000A05F6 File Offset: 0x0009E7F6
		private void SetFiringModeBarLocation(int v)
		{
			GlobalPreferences.FiringModeBarLocation.value = v;
			if (PlayerRaygun.instance != null)
			{
				PlayerRaygun.instance.RefreshUI();
			}
		}

		// Token: 0x06001973 RID: 6515 RVA: 0x000A061D File Offset: 0x0009E81D
		private void OnAuxiliaryScaleChanged(float v)
		{
			GlobalPreferences.UIAuxiliaryScale.value = v;
			if (PlayerRaygun.instance != null)
			{
				PlayerRaygun.instance.RefreshUI();
			}
		}

		// Token: 0x06001974 RID: 6516 RVA: 0x000A0644 File Offset: 0x0009E844
		private void OnProjectileMaskChanged()
		{
			GlobalPreferences.PlayerProjectileGtsMask.value = this.projectileGtsMask.isOn;
			GlobalPreferences.PlayerProjectileMicroMask.value = this.projectileMicroMask.isOn;
			GlobalPreferences.PlayerProjectileObjectMask.value = this.projectileObjectMask.isOn;
			if (PlayerRaygun.instance != null)
			{
				PlayerRaygun.instance.SetupProjectileMask();
			}
		}

		// Token: 0x06001975 RID: 6517 RVA: 0x000A06AC File Offset: 0x0009E8AC
		private void OnLaserMaskChanged()
		{
			GlobalPreferences.LaserGtsMask.value = this.laserGtsMask.isOn;
			GlobalPreferences.LaserMicroMask.value = this.laserMicroMask.isOn;
			GlobalPreferences.LaserObjectMask.value = this.laserObjectMask.isOn;
			if (PlayerRaygun.instance != null)
			{
				PlayerRaygun.instance.SetupLaserMask();
			}
		}

		// Token: 0x06001976 RID: 6518 RVA: 0x000A0714 File Offset: 0x0009E914
		private void OnSonicMaskChanged()
		{
			GlobalPreferences.SonicGtsMask.value = this.sonicGtsMask.isOn;
			GlobalPreferences.SonicMicroMask.value = this.sonicMicroMask.isOn;
			GlobalPreferences.SonicObjectMask.value = this.sonicObjectMask.isOn;
			if (PlayerRaygun.instance != null)
			{
				PlayerRaygun.instance.SetupSonicMask();
			}
		}

		// Token: 0x04001B64 RID: 7012
		private Transform panelTransform;

		// Token: 0x04001B65 RID: 7013
		private GameObject settingsTab;

		// Token: 0x04001B66 RID: 7014
		private Button generalTabButton;

		// Token: 0x04001B67 RID: 7015
		private Button projectileTabButton;

		// Token: 0x04001B68 RID: 7016
		private Button laserTabButton;

		// Token: 0x04001B69 RID: 7017
		private Button sonicTabButton;

		// Token: 0x04001B6A RID: 7018
		private GameObject gameSettings;

		// Token: 0x04001B6B RID: 7019
		private Toggle scriptMode;

		// Token: 0x04001B6C RID: 7020
		private Slider aimTargetDist;

		// Token: 0x04001B6D RID: 7021
		private Slider growColorR;

		// Token: 0x04001B6E RID: 7022
		private Slider growColorG;

		// Token: 0x04001B6F RID: 7023
		private Slider growColorB;

		// Token: 0x04001B70 RID: 7024
		private Slider shrinkColorR;

		// Token: 0x04001B71 RID: 7025
		private Slider shrinkColorG;

		// Token: 0x04001B72 RID: 7026
		private Slider shrinkColorB;

		// Token: 0x04001B73 RID: 7027
		private Slider crosshairColorR;

		// Token: 0x04001B74 RID: 7028
		private Slider crosshairColorG;

		// Token: 0x04001B75 RID: 7029
		private Slider crosshairColorB;

		// Token: 0x04001B76 RID: 7030
		private Slider auxiliaryColorR;

		// Token: 0x04001B77 RID: 7031
		private Slider auxiliaryColorG;

		// Token: 0x04001B78 RID: 7032
		private Slider auxiliaryColorB;

		// Token: 0x04001B79 RID: 7033
		private SettingsView.ToggleSlider auxiliaryFade;

		// Token: 0x04001B7A RID: 7034
		private Dropdown crosshairImage;

		// Token: 0x04001B7B RID: 7035
		private string[] crosshairs = new string[]
		{
			"Standard 1",
			"Standard 2",
			"Standard 3",
			"Standard 4",
			"Standard 5",
			"Standard 6",
			"Scifi 1",
			"Scifi 2",
			"Arcane 1",
			"Arcane 2"
		};

		// Token: 0x04001B7C RID: 7036
		private Dropdown crosshairOutline;

		// Token: 0x04001B7D RID: 7037
		private string[] crosshairOutlines = new string[]
		{
			"No Outline",
			"Black Outline",
			"White Outline",
			"Inverse Color Outline",
			"Darker color Outline",
			"Lighter Color Outline"
		};

		// Token: 0x04001B7E RID: 7038
		private Dropdown polarityBarLocation;

		// Token: 0x04001B7F RID: 7039
		private string[] polarityBarLocations = new string[]
		{
			"Center",
			"Bottom-right",
			"Bottom-left"
		};

		// Token: 0x04001B80 RID: 7040
		private Dropdown firingModeBarLocation;

		// Token: 0x04001B81 RID: 7041
		private string[] firingModeBarLocations = new string[]
		{
			"Center-top",
			"Center-bottom",
			"Bottom-right",
			"Bottom-left"
		};

		// Token: 0x04001B82 RID: 7042
		private Slider crosshairScale;

		// Token: 0x04001B83 RID: 7043
		private Slider auxiliaryScale;

		// Token: 0x04001B84 RID: 7044
		private Slider projectileEffectMult;

		// Token: 0x04001B85 RID: 7045
		private Dropdown projectileEffectMode;

		// Token: 0x04001B86 RID: 7046
		private string[] projectileEffectModes = new string[]
		{
			"Spurt",
			"Instant"
		};

		// Token: 0x04001B87 RID: 7047
		private Slider projectileChargeRate;

		// Token: 0x04001B88 RID: 7048
		private Slider projectileLifetime;

		// Token: 0x04001B89 RID: 7049
		private Slider projectileSpeedMult;

		// Token: 0x04001B8A RID: 7050
		private Toggle projectileImpactParticles;

		// Token: 0x04001B8B RID: 7051
		private Slider projectileImpactParticlesSizeMult;

		// Token: 0x04001B8C RID: 7052
		private Toggle projectileGtsMask;

		// Token: 0x04001B8D RID: 7053
		private Toggle projectileMicroMask;

		// Token: 0x04001B8E RID: 7054
		private Toggle projectileObjectMask;

		// Token: 0x04001B8F RID: 7055
		private Slider laserEffectMult;

		// Token: 0x04001B90 RID: 7056
		private Slider laserWidthMult;

		// Token: 0x04001B91 RID: 7057
		private Toggle laserImpactParticles;

		// Token: 0x04001B92 RID: 7058
		private Slider laserImpactParticlesSizeMult;

		// Token: 0x04001B93 RID: 7059
		private Toggle laserGtsMask;

		// Token: 0x04001B94 RID: 7060
		private Toggle laserMicroMask;

		// Token: 0x04001B95 RID: 7061
		private Toggle laserObjectMask;

		// Token: 0x04001B96 RID: 7062
		private Slider sonicEffectMult;

		// Token: 0x04001B97 RID: 7063
		private Slider sonicWidthMult;

		// Token: 0x04001B98 RID: 7064
		private Toggle sonicTagging;

		// Token: 0x04001B99 RID: 7065
		private Toggle sonicGtsMask;

		// Token: 0x04001B9A RID: 7066
		private Toggle sonicMicroMask;

		// Token: 0x04001B9B RID: 7067
		private Toggle sonicObjectMask;
	}
}
